<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>data &#8212; Data Abstraction Classes &mdash; Interop Router 3.30 documentation</title>
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
          URL_ROOT:    '../../',
          VERSION:     '0',
          COLLAPSE_MODINDEX: false,
          FILE_SUFFIX: '.html'
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="top" title="Interop Router 3.30 documentation" href="../../index.html" />
    <link rel="up" title="Python Modules" href="mod_index.html" />
    <link rel="next" title="exceptions_ &#8212; Exceptions" href="error.html" />
    <link rel="prev" title="connectSQL &#8212; SQL Connection Handler" href="connectSQL.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="error.html" title="exceptions_ &#8212; Exceptions"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="connectSQL.html" title="connectSQL &#8212; SQL Connection Handler"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">Interop Router 3.30 documentation</a> &raquo;</li>
          <li><a href="../index.html" accesskey="U">Deemon Documentation</a> &raquo;</li>
          <li><a href="mod_index.html" accesskey="U">Python Modules</a> &raquo;</li> 
      </ul>
    </div>  
    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  
  <div class="section" id="module-data">
<h1><tt class="xref docutils literal"><span class="pre">data</span></tt> &#8212; Data Abstraction Classes<a class="headerlink" href="#module-data" title="Permalink to this headline">¶</a></h1>
<p>Here are the data structures of Daemon: Projects and Jobs.</p>
<p>Them implements the Interop Router concepts, where a project contains
many jobs and the application source code. Each job contains the input data
file to a instance of the application.</p>
<p>But, in the code, these classes are more independents, and a project don&#8217;t
contain the job really, only is associate with its. This choice left some
tasks simpler.</p>
<dl class="class">
<dt id="data.Job">
<!--[data.Job]-->class <tt class="descname">Job</tt><big>(</big><em>fields</em><big>)</big><a class="headerlink" href="#data.Job" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref docutils literal"><span class="pre">object</span></tt></p>
<p>Implements the job data.</p>
<p>Each job contains information about the its data file, processing status,
the project which belongs and is name.</p>
<dl class="docutils">
<dt>The Job Constructor. Set the values using the </dt>
<dd><p class="first">information of the table Projects in Database.</p>
<p>Keyoword arguments:</p>
<p class="last">fields &#8211; a list with the job id, the id of project which jobs belongs,
a job name,
the data file,
and the job status, that here is always equal to 1</p>
</dd>
</dl>
<dl class="method">
<dt id="data.Job.getId">
<!--[data.Job.getId]--><tt class="descname">getId</tt><big>(</big><big>)</big><a class="headerlink" href="#data.Job.getId" title="Permalink to this definition">¶</a></dt>
<dd>Get ID property method.</dd></dl>

<dl class="attribute">
<dt id="data.Job.id">
<!--[data.Job.id]--><tt class="descname">id</tt><a class="headerlink" href="#data.Job.id" title="Permalink to this definition">¶</a></dt>
<dd>Get ID property method.</dd></dl>

<dl class="method">
<dt id="data.Job.setId">
<!--[data.Job.setId]--><tt class="descname">setId</tt><big>(</big><em>id</em><big>)</big><a class="headerlink" href="#data.Job.setId" title="Permalink to this definition">¶</a></dt>
<dd>Set ID property method.</dd></dl>

</dd></dl>

<dl class="class">
<dt id="data.Project">
<!--[data.Project]-->class <tt class="descname">Project</tt><big>(</big><em>id</em>, <em>fields</em><big>)</big><a class="headerlink" href="#data.Project" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref docutils literal"><span class="pre">object</span></tt></p>
<p>Implements the project data.</p>
<p>Each project contains information about the program execution and
the program source code.</p>
<p>Set the values using the information of the table Projects in Database.</p>
<blockquote>
<p>Keyoword arguments:</p>
<p>id &#8211; a string with the project id in the Interop Router.</p>
<p>fields &#8211; a list with the number of processors required for the project
and the parameters os program call.</p>
<p>The attribute sourceCode is create in run time, after the class __init__.</p>
</blockquote>
<dl class="method">
<dt id="data.Project.getId">
<!--[data.Project.getId]--><tt class="descname">getId</tt><big>(</big><big>)</big><a class="headerlink" href="#data.Project.getId" title="Permalink to this definition">¶</a></dt>
<dd>Get ID property method.</dd></dl>

<dl class="method">
<dt id="data.Project.getSource">
<!--[data.Project.getSource]--><tt class="descname">getSource</tt><big>(</big><big>)</big><a class="headerlink" href="#data.Project.getSource" title="Permalink to this definition">¶</a></dt>
<dd>Get Source Code property method.</dd></dl>

<dl class="attribute">
<dt id="data.Project.id">
<!--[data.Project.id]--><tt class="descname">id</tt><a class="headerlink" href="#data.Project.id" title="Permalink to this definition">¶</a></dt>
<dd>Get ID property method.</dd></dl>

<dl class="method">
<dt id="data.Project.setId">
<!--[data.Project.setId]--><tt class="descname">setId</tt><big>(</big><em>id</em><big>)</big><a class="headerlink" href="#data.Project.setId" title="Permalink to this definition">¶</a></dt>
<dd>Set ID property method.</dd></dl>

<dl class="method">
<dt id="data.Project.setSource">
<!--[data.Project.setSource]--><tt class="descname">setSource</tt><big>(</big><em>source</em><big>)</big><a class="headerlink" href="#data.Project.setSource" title="Permalink to this definition">¶</a></dt>
<dd>Set Source Code property method.</dd></dl>

<dl class="attribute">
<dt id="data.Project.sourceCode">
<!--[data.Project.sourceCode]--><tt class="descname">sourceCode</tt><a class="headerlink" href="#data.Project.sourceCode" title="Permalink to this definition">¶</a></dt>
<dd>Get Source Code property method.</dd></dl>

</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h4>Previous topic</h4>
            <p class="topless"><a href="connectSQL.html" title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">connectSQL</span></tt> &#8212; SQL Connection Handler</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="error.html" title="next chapter"><tt class="docutils literal docutils literal"><span class="pre">exceptions_</span></tt> &#8212; Exceptions</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../../_sources/deemon/modules/data.txt">Show Source</a></li>
            </ul>
          <h3>Quick search</h3>
            <form class="search" action="../../search.html" method="get">
              <input type="text" name="q" size="18" /> <input type="submit" value="Go" />
              <input type="hidden" name="check_keywords" value="yes" />
              <input type="hidden" name="area" value="default" />
            </form>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="error.html" title="exceptions_ &#8212; Exceptions"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="connectSQL.html" title="connectSQL &#8212; SQL Connection Handler"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">Interop Router 3.30 documentation</a> &raquo;</li>
          <li><a href="../index.html" accesskey="U">Deemon Documentation</a> &raquo;</li>
          <li><a href="mod_index.html" accesskey="U">Python Modules</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright .
      Last updated on Dec 17, 2008.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.5.
    </div>
  </body>
</html>